package com.ruoyi.system.domain.vo;

import com.ruoyi.system.api.domain.SysUser;

import java.io.Serializable;
import java.util.List;

public class UserVo extends SysUser {
    private List<UserPost> userPosts;

    public UserVo() {
    }

    public UserVo(List<UserPost> userPosts) {
        this.userPosts = userPosts;
    }

    public UserVo(Long userId, List<UserPost> userPosts) {
        super(userId);
        this.userPosts = userPosts;
    }

    public List<UserPost> getUserPosts() {
        return userPosts;
    }

    public void setUserPosts(List<UserPost> userPosts) {
        this.userPosts = userPosts;
    }

    @Override
    public String toString() {
        return "UserVo{" +
                "userPosts=" + userPosts +
                "} " + super.toString();
    }
}
